# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=hfsfuse
pkgver=0.153
pkgrel=0
pkgdesc="FUSE driver for HFS+ filesystems"
url="https://github.com/0x09/hfsfuse"
arch="all"
license="MIT BSD-2-Clause"
makedepends="
	fuse-dev
	linux-headers
	utf8proc-dev
	"
source="https://github.com/0x09/hfsfuse/releases/download/$pkgver/hfsfuse-$pkgver.tar.gz"
options="!check"  # no tests provided

prepare() {
	default_prepare

	rm -rf lib/utf8proc
}

build() {
	make WITH_UBILIO=local WITH_UTF8PROC=system
}

package() {
	mkdir -p "$pkgdir"/usr/bin
	make install PREFIX="$pkgdir/usr" WITH_UBILIO=local WITH_UTF8PROC=system
}

sha512sums="
d897d37a2dd7819c31fc00504075cd80c6c8b07b336e5622d6e65f8b97df805f58048d9468673ee394f5e8ea4c03f0ef2cc2e045c526346ef9dbf1f134b59741  hfsfuse-0.153.tar.gz
"
